<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Goods list</title>
</head>
<body>
<h1>goods list</h1>
<table border="1">
    <tr>
        <th>ID</th>
        <th>BRAND</th>
        <th>COUNT</th>
        <th colspan="2">OPTIONS</th>
    </tr>
    <c:forEach var="goods" items="${sessionScope.goodss}">
        <tr>
            <td>${goods.id}</td>
            <td>${goods.brand}</td>
            <td>${goods.count}</td>
            <td><a href="/goods/removeById/${goods.id}">remove</a> </td>
            <td><a href="/goods/queryById/${goods.id}">edit</a> </td>
            <td><a href="/goods/queryGoods/${goods.id}">details</a> </td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
